package cn.mjnxin.charge.model.entity;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
/**
 * demo_note:笔记内容表
 * create by :clg  2023/8/29
 *
 * @mbg.generated
 */
public class DemoNote implements Serializable {
    /**
     * 主键
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="主键")
    private Integer id;

    /**
     * 内容
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="内容")
    private String content;

    /**
     *  0.一般 1.重要
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes=" 0.一般 1.重要")
    private Long status;

    /**
     * 标题
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="标题")
    private String title;

    /**
     * 0.我的笔记 1.公司笔记 2.共享笔记
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="0.我的笔记 1.公司笔记 2.共享笔记")
    private Long type;

    /**
     * 笔记分类
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="笔记分类")
    private Integer catalogId;

    /**
     * 附件
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="附件")
    private Integer attachId;

    /**
     * 0.未收藏 1.收藏
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="0.未收藏 1.收藏")
    private Long isCollected;

    /**
     * 用户id
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="用户id")
    private Integer userId;

    /**
     * 创建人
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="创建人")
    private String createBy;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="创建时间")
    private Date createTime;

    /**
     * 修改人
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="修改人")
    private String updateBy;

    /**
     * 修改时间
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="修改时间")
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Integer getCatalogId() {
        return catalogId;
    }

    public void setCatalogId(Integer catalogId) {
        this.catalogId = catalogId;
    }

    public Integer getAttachId() {
        return attachId;
    }

    public void setAttachId(Integer attachId) {
        this.attachId = attachId;
    }

    public Long getIsCollected() {
        return isCollected;
    }

    public void setIsCollected(Long isCollected) {
        this.isCollected = isCollected;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy == null ? null : updateBy.trim();
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", content=").append(content);
        sb.append(", status=").append(status);
        sb.append(", title=").append(title);
        sb.append(", type=").append(type);
        sb.append(", catalogId=").append(catalogId);
        sb.append(", attachId=").append(attachId);
        sb.append(", isCollected=").append(isCollected);
        sb.append(", userId=").append(userId);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DemoNote other = (DemoNote) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getCatalogId() == null ? other.getCatalogId() == null : this.getCatalogId().equals(other.getCatalogId()))
            && (this.getAttachId() == null ? other.getAttachId() == null : this.getAttachId().equals(other.getAttachId()))
            && (this.getIsCollected() == null ? other.getIsCollected() == null : this.getIsCollected().equals(other.getIsCollected()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getCatalogId() == null) ? 0 : getCatalogId().hashCode());
        result = prime * result + ((getAttachId() == null) ? 0 : getAttachId().hashCode());
        result = prime * result + ((getIsCollected() == null) ? 0 : getIsCollected().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }
}